package tgc.edu.tms.entity;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import tgc.edu.tms.custom.BaseEntity;
@Entity
public class Schedule extends BaseEntity<Integer>{
	private String kcmc; // 课程名称
	private String kcdm; // 课程代码
	private Integer zongxs; // 总学时
	private float xf; // 学分
	private Integer jsxs; // 讲授学时
	private Integer syxs; // 实验学时
	private Integer sjxs; // 上机学时
	private Integer qtxs; // 其他学时
	private String kclb; // 课程类别
	private Integer zhouxs; // 每周学时
	private String khfs; // 考核方式
	private String kkxq; // 开课学期
	private Profession profession; // 选择专业表	*
	private String qszc;			//起始周次
	private String jszc;			//结束周次
	private String jslx;			//安排-教室类型 多媒体教室
	private String teacher;		//关联到教师表
	private String xnxq;	//关联学年学期
	private String tbclass;		//上课班级
	private Boolean xmh;
	private String jcsj;//上课节次
	private String xq;//星期时间
	private Location location;   //所属位置
	private String floor;   //教室所在楼层
	private String serialNumber;   //编号s8_602
	private Integer capacity;    //容量（一个教室能做多少人）
	private ClassType type;    //类型
	public String getKcmc() {
		return kcmc;
	}
	public void setKcmc(String kcmc) {
		this.kcmc = kcmc;
	}
	public String getKcdm() {
		return kcdm;
	}
	public void setKcdm(String kcdm) {
		this.kcdm = kcdm;
	}
	public Integer getZongxs() {
		return zongxs;
	}
	public void setZongxs(Integer zongxs) {
		this.zongxs = zongxs;
	}
	public float getXf() {
		return xf;
	}
	public void setXf(float xf) {
		this.xf = xf;
	}
	public Integer getJsxs() {
		return jsxs;
	}
	public void setJsxs(Integer jsxs) {
		this.jsxs = jsxs;
	}
	public Integer getSyxs() {
		return syxs;
	}
	public void setSyxs(Integer syxs) {
		this.syxs = syxs;
	}
	public Integer getSjxs() {
		return sjxs;
	}
	public void setSjxs(Integer sjxs) {
		this.sjxs = sjxs;
	}
	public Integer getQtxs() {
		return qtxs;
	}
	public void setQtxs(Integer qtxs) {
		this.qtxs = qtxs;
	}
	public String getKclb() {
		return kclb;
	}
	public void setKclb(String kclb) {
		this.kclb = kclb;
	}
	public Integer getZhouxs() {
		return zhouxs;
	}
	public void setZhouxs(Integer zhouxs) {
		this.zhouxs = zhouxs;
	}
	public String getKhfs() {
		return khfs;
	}
	public void setKhfs(String khfs) {
		this.khfs = khfs;
	}
	public String getKkxq() {
		return kkxq;
	}
	public void setKkxq(String kkxq) {
		this.kkxq = kkxq;
	}
	@ManyToOne
	public Profession getProfession() {
		return profession;
	}
	public void setProfession(Profession profession) {
		this.profession = profession;
	}
	public String getQszc() {
		return qszc;
	}
	public void setQszc(String qszc) {
		this.qszc = qszc;
	}
	public String getJszc() {
		return jszc;
	}
	public void setJszc(String jszc) {
		this.jszc = jszc;
	}
	public String getJslx() {
		return jslx;
	}
	public void setJslx(String jslx) {
		this.jslx = jslx;
	}
	public String getTeacher() {
		return teacher;
	}
	public void setTeacher(String teacher) {
		this.teacher = teacher;
	}
	public String getXnxq() {
		return xnxq;
	}
	public void setXnxq(String xnxq) {
		this.xnxq = xnxq;
	}
	public String getTbclass() {
		if(tbclass==null||tbclass.equals("")) {
			return null;
		}
		return tbclass;
	}
	public void setTbclass(String tbclass) {
		this.tbclass = tbclass;
	}
	public Boolean getXmh() {
		return xmh;
	}
	public void setXmh(Boolean xmh) {
		this.xmh = xmh;
	}
	public String getJcsj() {
		return jcsj;
	}
	public void setJcsj(String jcsj) {
		this.jcsj = jcsj;
	}
	public String getXq() {
		return xq;
	}
	public void setXq(String xq) {
		this.xq = xq;
	}
	@ManyToOne
	public Location getLocation() {
		return location;
	}
	public void setLocation(Location location) {
		this.location = location;
	}
	public String getFloor() {
		return floor;
	}
	public void setFloor(String floor) {
		this.floor = floor;
	}
	public String getSerialNumber() {
		return serialNumber;
	}
	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}
	public Integer getCapacity() {
		return capacity;
	}
	public void setCapacity(Integer capacity) {
		this.capacity = capacity;
	}
	@ManyToOne
	public ClassType getType() {
		return type;
	}
	public void setType(ClassType type) {
		this.type = type;
	}
	
}
